/*
 * Created on Sep 10, 2003
 *
 * RegisteredRole
 * Local Projects Database
 * (comparator) 2003 eRomania Gateway Association
 *
 */
package ro.gateway.aida.usr;

/**
 * @author Denisa
 *
 * This is the RegisteredRole type definition
 *
 */
public class RegisteredRole extends GroupRole
{

      public RegisteredRole()
      {
            super( "Registered", "This role defines the permissions a basic register user has" );
            id = GroupRole.REGISTERED_ROLE;
      }


      public int registered_role_list[] =
            {
                  Perms.VIEW_PROJECT_DETAILS,
                  Perms.ADVANCED_SEARCH
            };


      public boolean canDo( int action )
      {
            for ( int i = 0; i < registered_role_list.length; i++ )
            {
                  if ( registered_role_list[ i ] == action ) return true;
            }

            return false;
      }

}
